<?php

/**
 * @property string $name
 *
 * @property UserModel[] $users
 */
class EducationModel extends BaseModel
{
	public function tableName()
	{
		return '{{education}}';
	}

	public static function model($className=__CLASS__)
	{
		return parent::model($className);
	}

    public function relations()
    {
        return array
        (
            'users' => array(self::MANY_MANY, 'UserModel', '{{user_education}}(education_id,user_id)'),
        );
    }
}
